import com.alibaba.druid.pool.DruidDataSource;
import com.mchange.v2.c3p0.DataSources;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.sql.SQLException;

public class Test {
    public static void main(String[] args) throws SQLException {
        System.out.println("init poject");
        System.out.println("贾仲元测试第一次");

        //测试数据库
        ApplicationContext app = new ClassPathXmlApplicationContext("mybaties-plus.xml");
        DruidDataSource dataSources = app.getBean(DruidDataSource.class);
        System.out.println(dataSources.getConnection());

    }
}
